<script setup>
import { ref } from 'vue'
import Login from './components/Login.vue'
import FileManager from './components/FileManager.vue'

const sid = ref('')
</script>

<template>
  <div class="app-center">
    <Login v-if="!sid" @login-success="sid = $event" />
    <FileManager v-else :sid="sid" />
    </div>
</template>

<style scoped>
.app-center {
  min-height: 100vh;
  width: 100vw;
    display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #e0e7ff 0%, #f0fdfa 100%);
  }
@media (max-width: 700px) {
  .app-center {
    padding: 0;
  }
}
</style>
